package com.inspsys.inspection.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.inspsys.common.annotation.Excel;
import com.inspsys.common.core.domain.BaseEntity;

/**
 * 巡检计划对象 inspection_plan
 *
 * @author inspsys
 * @date 2025-01-08
 */
public class InspectionPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 工单编号 */
    @Excel(name = "工单编号")
    private String orderNumber;

    /** 任务专业 */
    @Excel(name = "任务专业")
    private String taskType;

    /** 区段 */
    @Excel(name = "区段")
    private String section;

    /** 作业平台 */
    @Excel(name = "作业平台")
    private String platform;

    /** 巡检任务 */
    @Excel(name = "巡检任务")
    private String task;

    /** 作业规范 */
    @Excel(name = "作业规范")
    private String specifications;

    /** 计划开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planStartTime;

    /** 计划结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planEndTime;

    /** 作业内容 */
    @Excel(name = "作业内容")
    private String planContent;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }

    public String getTaskType()
    {
        return taskType;
    }
    public void setSection(String section)
    {
        this.section = section;
    }

    public String getSection()
    {
        return section;
    }
    public void setPlatform(String platform)
    {
        this.platform = platform;
    }

    public String getPlatform()
    {
        return platform;
    }
    public void setTask(String task)
    {
        this.task = task;
    }

    public String getTask()
    {
        return task;
    }
    public void setSpecifications(String specifications)
    {
        this.specifications = specifications;
    }

    public String getSpecifications()
    {
        return specifications;
    }
    public void setPlanStartTime(Date planStartTime)
    {
        this.planStartTime = planStartTime;
    }

    public Date getPlanStartTime()
    {
        return planStartTime;
    }
    public void setPlanEndTime(Date planEndTime)
    {
        this.planEndTime = planEndTime;
    }

    public Date getPlanEndTime()
    {
        return planEndTime;
    }
    public void setPlanContent(String planContent)
    {
        this.planContent = planContent;
    }

    public String getPlanContent()
    {
        return planContent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("taskType", getTaskType())
            .append("section", getSection())
            .append("platform", getPlatform())
            .append("task", getTask())
            .append("specifications", getSpecifications())
            .append("planStartTime", getPlanStartTime())
            .append("planEndTime", getPlanEndTime())
            .append("planContent", getPlanContent())
            .toString();
    }
}
